// 产品介绍
var serchImg = $(".product .active");
serchImg
  .next()
  .mouseover((e) => {
    $(e.target).prev().show();
  })
  .mouseout((e) => {
    $(e.target).prev().hide();
  });
serchImg.next().click((e) => {
  if ($(e.target).next().text() == "拿铁咖啡") {
    location="./html/latte.html"
  }else if ($(e.target).next().text() == "卡布基诺") {
    location="./html/cappuccino.html"
  }else if ($(e.target).next().text() == "摩卡咖啡") {
    location="./html/mocha.html"
  }
});

// 公司团队
var team =document.getElementsByClassName("team")[0];
var people = team.lastElementChild.children;
for (var i=0;i<people.length;i++){
    people[i].onmouseover=function(){
        this.lastElementChild.style.display="block";
    }
    people[i].onmouseout=function(){
        this.lastElementChild.style.display="none";
    }
}
